package com.work.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 溯源交易
 * @Date 2024-05-15 21:09:05
 * @author hjj
 */
@Data
@TableName("traceability")
@ApiModel(value="Traceability对象", description="溯源交易")
public class Traceability implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @ApiModelProperty("藏品id")
    private Integer collectionId;

    @Size(max= 64,message="编码长度不能超过64")
    @ApiModelProperty("藏品链上哈希")
    private String collectionHash;

    @Size(max= 72,message="编码长度不能超过72")
    @ApiModelProperty("藏品编号")
    private String collectionIdentifier;

    @ApiModelProperty("交易时间")
    private Date tradingTime;

    @Size(max= 128,message="编码长度不能超过128")
    @ApiModelProperty("交易哈希")
    private String tradingHash;

    @Size(max= 64,message="编码长度不能超过64")
    @ApiModelProperty("前任藏主地址")
    private String formerUserAddress;

    @Size(max= 64,message="编码长度不能超过64")
    @ApiModelProperty("后任藏主地址")
    private String afterUserAddress;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
